
#ifndef UTILS_H
#define UTILS_H
#include <time.h>
#include <sys/time.h>
#include <iostream>
#include <stdio.h>  
#include <stdlib.h>  
#include <errno.h>
#include <string.h>
#include <numeric>   
#include <algorithm>   
#include <fcntl.h>
#include <vector>

using namespace std;

class Utils
{
public:
    Utils();
    virtual ~Utils();

public:
    static time_t string2time_t(const string string_time);
    static string time_t2string(const time_t time_t_time);
    static string time_t2str(const time_t time_t_time);
    static vector<std::string> split(std::string str,std::string pattern);
    static long getCurTime();
    static void writeFile(string filename, char *data, int fsize);
};

#endif